package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.HotelProducts;
import cn.wolfcode.trip.base.query.HotelQueryObjext;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HotelProductsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(HotelProducts record);


    List<HotelProducts> selectByPrimaryKey(Long id);

    List<HotelProducts> selectAll();

    int updateByPrimaryKey(HotelProducts record);

    List<HotelProducts> queryForList(QueryObject qo);

    //更新状态
    void put(HotelQueryObjext qo);

    void updateIntergral(@Param("prices") long prices, @Param("id") Long id);
    //更改用户的积分
}